/**
 * @file main.cpp
 * @author SoBigDog (623644973lubin@163.com)
 * @brief 
 * @version 0.1
 * @date 2020-04-07
 * 
 * @copyright Copyright (c) 2020
 * 
 */
#include <iostream>
#include <ncurses.h>
#include <string.h>

#include "win/MainWin.h"

#include "proto/CanFrame.pb.h"

using namespace std;

int WinThread(void)
{
	int a;
	MainWin mainWin;
	
	while (1) {
		a = getch();
		if (a == 'q')
			break;
		else if (a == 's') 
			mainWin.frash();
	}
	

	endwin();

	return 0;
}

int main(int argc, char * argv[])
{
	WinThread();

	return 0;
}